<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<head>
<title>无标题文档</title>
  <link href="${pageContext.request.contextPath}/page/css/common.css" rel="stylesheet" type="text/css" />
  <link href="${pageContext.request.contextPath}/page/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>


<div class="wrap">
<!-- main begin-->
  <div class="sale">
    <h1 class="lf">在线拍卖系统</h1>
    <div class="logout right"><a href="${pageContext.request.contextPath}/page/denglu.jsp" title="注销">注销</a></div>
  </div>

  <div class="forms">

    <label for="name">名称</label>
    <input name="" type="text" class="nwinput" id="name"/>
    <label for="names">描述</label>
    <input name="" type="text" id="names" class="nwinput"/>
    <label for="time">开始时间</label>
    <input name="" type="text" id="time" class="nwinput"/>
    <label for="end-time">结束时间</label>
    <input name="" type="text" id="end-time" class="nwinput" />
    <label for="price">起拍价</label>
    <input name="" type="text" id="price" class="nwinput" />
    <input name="" type="button"  value="查询" class="spbg buttombg f14  sale-buttom"/>
    <input type="button"  value="发布" class="spbg buttombg f14  sale-buttom buttomb"/>

  </div>

  <div class="items">
      <ul class="rows even strong">
        <li>名称</li>
        <li class="list-wd">描述</li>
        <li>开始时间</li>
        <li>结束时间</li>
        <li>起拍价</li>
        <li class="borderno">操作</li>
      </ul>
      <c:forEach items="${requestScope.auctionList}" var="auction">
      <ul class="rows">
        <li>${auction.auction_id}</li>
        <li class="list-wd">${auction.auction_name}</li>
        <li><fmt:formatDate value="${auction.auction_start_time}" pattern="yyyy-MM-dd"></fmt:formatDate></li>
        <li><fmt:formatDate value="${auction.auction_end_time}" pattern="yyyy-MM-dd"/> </li>
        <li>${auction.auction_start_price} </li>
        <li class="borderno red">
           <a href="${pageContext.request.contextPath}/rc/selectRecordAndUser.do?id=${auction.auction_id}">竞拍</a>
		   <a href="${pageContext.request.contextPath}/updateAuction.do?id=${auction.auction_id}" title="修改" onclick="dele();">修改</a>|
          <a href="${pageContext.request.contextPath}/delete.do?id=${auction.auction_id}" title="删除">删除</a>


        </li>
      </ul>
      </c:forEach>
    <p><a href="${pageContext.request.contextPath}/page/zengjiaye.jsp">添加</a> </p>
      <div class="page">
        <a href="#" title="">首页</a>
        <a href="#" title="">上一页</a>
        <span class="red">前5页</span>
        <a href="#" title="">1</a> 
        <a href="#" title="">2</a> 
        <a href="#" title="">3</a> 
        <a href="#" title="">4</a>
        <a href="#" title="">5</a> 
        <a href="#" title="">下一页</a>
        <a href="#" title="">尾页</a> 
      </div>
  </div>
  <%--<script>--%>
   <%--function abc(){--%>
	   <%----%>
	   <%--if(confirm("你真的确认要删除吗？请确认")){--%>
	    <%----%>
		   <%--return true;--%>
		 <%--}--%>
		 <%--else{--%>
			 <%--return false;--%>
			 <%--}--%>
			 <%----%>
	   <%--};--%>
	   <%--function dele(){--%>
		   <%--if(confirm("你真的确认要修改吗？请确认")){--%>
			   <%--return true;--%>
			   <%--}--%>
			   <%--else{--%>
				   <%--return false;--%>
				   <%--}--%>
		   <%--}--%>
  <%--</script>--%>
<!-- main end-->

</div>
</body>
</html>
